﻿#include "widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent)
{
    setupUi(this);

    bOffline=true;
    if(!db.connect())
        this->status->setText("Database Offline");
    else
        bOffline=false;
}

void Widget::updateCategory()
{
    db.useCollection(TD_META,DB_NAME);
}
